package cn.org.xiaosheng.core.protocol;

import io.netty.handler.codec.LengthFieldBasedFrameDecoder;

/**
 *
 * 定长解码器 必须配合MessageCodecSharable使用
 * @author XiaoSheng
 * @date 2024/8/21 下午12:29
 */
public class ProcotolFrameDecoder extends LengthFieldBasedFrameDecoder  {

    public ProcotolFrameDecoder() {
        this(1024, 12, 4, 0, 0);
    }

    public ProcotolFrameDecoder(int maxFrameLength, int lengthFieldOffset, int lengthFieldLength, int lengthAdjustment, int initialBytesToStrip) {
        super(maxFrameLength, lengthFieldOffset, lengthFieldLength, lengthAdjustment, initialBytesToStrip);
    }

}
